﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model
{
    [Table("Locking")]
    public class Locking
    {
        public int Id { get; set; }
        public string TableName { get; set; }
        public string Status { get; set; }

        public int CurrentUserId { get; set; }

        public int ItemId { get; set; }

        public DateTime StartTime { get; set; }
    }

    [NotMapped]
    public class LockingTemplate
    {
        public int Id { get; set; }
        public string TableName { get; set; }
        public string Status { get; set; }

        public int CurrentUserId { get; set; }

        public string FullName { get; set; }

        public int ItemId { get; set; }

        public DateTime StartTime { get; set; }

    }
}
